<!-- 组织机构管理 -->
<div class="easyui-layout">

    <div class="easyui-tabs" style="height:700px;padding: 5px;">

        <div title="单日市场数据">

            <div style="margin:20px 0;">
                {#单日市场数据#}
                <div id="market_toolbar" style="padding:5px;height:auto">
                    <form action="" id="market_form">
                        <input id="market_date" class="easyui-datebox" name="date"></input>
                        <a href="#" id="market_search">Search</a>

                    </form>
                </div>
                <div id="market_sigle_day">
                </div>
            </div>
        </div>

        <div title="行业单日数据" style="padding:10px">
            <div style="margin:20px 0;">
                {#行业单日数据#}

                <div id="industy_toolbar" style="padding:5px;height:auto">
                    <form action="" id="industry_form">
                        <input id="industry_date" class="easyui-datebox"
                               name="date"></input>
                        <a href="#" id="industry_search">Search</a>

                    </form>
                </div>
                <div id="industry_sigle_day">
                </div>
            </div>
        </div>


        <div title="股票单日数据" style="padding:10px">

            <div style="margin:20px 0;">
                {#股票单日数据#}

                <div id="stock_toolbar" style="padding:5px;height:auto">
                    <form action="" id="stock_form">
                        <input id="stock_date" class="easyui-datebox"
                               name="date"></input>
                        <a href="#" id="stock_search">Search</a>

                    </form>
                </div>
                <div id="stock_sigle_day">
                </div>
            </div>
        </div>

    </div>


</div>

<script type="text/javascript">

    $(function () {
        $('#market_date').datebox({
            formatter: myformatter,
            parser: myparser,
            required: true
        });

        $('#industry_date').datebox({
            formatter: myformatter,
            parser: myparser,
            required: true
        });

        $('#stock_date').datebox({
            formatter: myformatter,
            parser: myparser,
            required: true
        });

        $.ajax({
            /*type = "get",*/
            url: '/common/last_trading_date',
            dateType: "JSON",
            timeout: 1000,
            success: function (data, textStatus, jqXHR) {
                // alert(data)
                $('#market_date').datebox('setValue', data);
                $('#industry_date').datebox('setValue', data);
                $('#stock_date').datebox('setValue', data);
            },
            error: function (xhr, textStatus) {
                if (textStatus == 'timeout') {
                    // Treat timeout logic
                    $.messager.alert("操作提示", "timeout！", "warning");

                } else {
                    console.log('error:' + textStatus);

                }
            }
        });

    })

</script>

<script type="text/javascript" src="/web/static/js/index.js"></script>
<script type="text/javascript" src="/web/static/js/index_datagrid.js"></script>
